<template>
  <div>
    <Header />
    <!-- <router-link to="/about" active-class="active">about</router-link> -->
    <!-- <router-link :to="{ path: '/about' }" active-class="active">about</router-link> -->
    <router-link :to="{ name: 'about' }" active-class="active">about</router-link>
    <router-link to="/home" active-class="active">home</router-link>
    <hr>
    <router-view></router-view>
  </div>
</template>

<script>
import Header from './components/Header'
export default {
  name: 'App',
  components: {
    Header
  }
}
</script>

<style>
  .active {
    background-color: skyblue;
  }
</style>